package com.test.notepad.activity;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class LogoActivity extends Activity{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.logo);
        Intent intent = new Intent(LogoActivity.this, LoginActivity.class);
        setIntent(intent);
//        if (intent.getData() == null) {
//            intent.setData(NotepadMetadata.CONTENT_URI);
//        }
        Timer timer=new Timer();
        TimerTask tast=new TimerTask() {
         @Override
         public void run(){
          startActivity(getIntent());
         }
        };
        timer.schedule(tast,2000);
    }

	@Override
	protected void onStop() {
		super.onStop();
		finish();
	}
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}
}